package cn.sdormitory.service;

import cn.sdormitory.smartdor.entity.SdRepair;
import cn.sdormitory.smartdor.vo.DeviceVo;
import cn.sdormitory.smartdor.vo.RepairInfoVo;
import cn.sdormitory.smartdor.vo.RepairStaVo;
import cn.sdormitory.smartdor.vo.RepairVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @创建人：zhouyang
 * @创建时间：2021/1/8 15:09
 * @version：V1.0
 */
public interface AppRepairService {
    List<RepairVo>  findAppRepairByRepairUserId(Long userId);
    List<RepairVo> getAppRepair(String repairDate, String storey, String buildingNo);
    List<RepairVo> getAppRepairByBId(Long bdormitoryId,String repairDate);
    int create(SdRepair repair);
    int update(Long id, SdRepair repair);
    SdRepair getRepairInfoById(Long id);
    int updateStatus(Long id, String status);
    List<DeviceVo> getAppDevice();
    RepairStaVo getAppRepairCount();
    List<RepairInfoVo> getAppNewRepairList();
    List<RepairInfoVo> getAppProcessList();
    List<RepairInfoVo> getAppHistoryRepList();
    List<RepairInfoVo> getAppHisRepListByBId(Long bdormitoryId);
    List<RepairInfoVo>getNewRepairInfoById(Long bdormitoryId);
    List<RepairInfoVo> getAllRepairByCreatedBy(String username);

    int deleteRepair(Long id, SdRepair repair);
}
